package com.zzl.study.sharding.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author: zhangzl
 * @date: 2022/7/21 9:27
 * @version: 1.0
 * @description: 人员实体对象
 */
@TableName("t_people")
@Data
public class People {

    /**
     * 主键ID
     */
    @TableId("id")
    private Long id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 性别
     */
    @TableField("sex")
    private Long sex;

    /**
     * 性别描述
     */
    @TableField(value = "sex_description", exist = false)
    private String sexDescription;

    /**
     * 年龄
     */
    @TableField("age")
    private Integer age;

}
